<h1>University Cases</h1>
</br></br>
<div id="cases1"> <!-- For Adding Cases -->
	<?php 
		echo form_open('encoder/addcase');
	?>
	<table>	
		<tr>
			<td width="160px"><?php echo form_label('<b>Student Number: </b>');?></td>
			<td>
				<?php echo $stdno; ?>
			</td>
		</tr>
	</table>
	</br>
	<table>
		<tr>
			<td width="160px">
				<?php echo '<b><i>' . form_label('Date: ') . '</i></b>';?>
			</td>
			<td width="30px">
				<?php
					$options = array(
							'01' => 'January',
							'02' => 'February',
							'03' => 'March',
							'04' => 'April',
							'05' => 'May',
							'06' => 'June',
							'07' => 'July',
							'08' => 'August',
							'09' => 'September',
							'10' => 'October',
							'11' => 'November',
							'12' => 'December',
						);
					
					echo form_dropdown('month',$options);
				?>
			</td>
			<td>
				<?php
					$options = array(
							'01' => '01',
							'02' => '02',
							'03' => '03',
							'04' => '04',
							'05' => '05',
							'06' => '06',
							'07' => '07',
							'08' => '08',
							'09' => '09',
							'10' => '10',
							'11' => '11',
							'12' => '12',
							'13' => '13',
							'14' => '14',
							'15' => '15',
							'16' => '16',
							'17' => '17',
							'18' => '18',
							'19' => '19',
							'20' => '20',
							'21' => '21',
							'22' => '22',
							'23' => '23',
							'24' => '24',
							'25' => '25',
							'26' => '26',
							'27' => '27',
							'28' => '28',
							'29' => '29',
							'30' => '30',
							'31' => '31',
						);
						
					echo form_dropdown('day',$options);
				?>
			</td>
			<td>
				<?php
					$options = array(
						'2010' => '2010',
						'2011' => '2011',
						'2012' => '2012',
						'2013' => '2013',
						'2014' => '2014',
						'2015' => '2015',
						'2016' => '2016',
						'2017' => '2017',
						'2018' => '2018',
						'2019' => '2019',
						'2020' => '2020',
						'2021' => '2021',
						'2022' => '2022',
						'2023' => '2023',
						'2024' => '2024',
						'2025' => '2025',
						);
						
					echo form_dropdown('year',$options);
				?>
			</td>
		</tr>
	</table>
	<table>
		<tr>
			<td width="160px">
				<?php echo '<b><i>' . form_label('Case Committed:', 'case') . '</i></b>';?>
			</td>
			<td>
				<?php 
					$data = array(
						'name'        => 'case',
						'id'          => 'case',
						'value'       =>  set_value('case'),
						'rows'  	  => '6',
						'cols'        => '40',
						'style'       => 'width:80%',
					);
					echo form_textarea($data);
				?>
			</td>
		</tr>
		<tr>
			<td>
			</td>
			<td>
				<?php echo form_error('case'); ?>
			</td>
		</tr>
	</table>

<!-- Submit Button -->
<?php
	$data = array(
		'value' => 'Submit Case',
	); 
	echo form_submit($data);
	echo form_close();
?>
	
</div>

</br>
<!-- Cancel Button -->
<?php 
	echo form_open('encoder/view');
		
	$data = array(
		'value' => 'Cancel',
	); 
	echo form_submit($data);
	echo form_close();
?>

<?php echo anchor('encoder/index','Back to Home Page');?> </br>
<?php echo anchor('encoder/logout','Logout');?>